#! /bin/bash

comment=$1$2$3$4$5$6$7$9

if [ ! -n "$comment" ]; then
  echo "submit error!";
  echo "Please input git commit comment!!!";
else
  git add .
  git commit -m "${comment}"
  git pull --rebase
  git push
  echo "submit sucess by comment:${comment}"
fi

